using ZeroSum.App.Extensions;

#if EnableLog
using ZeroSum.Extend.Logging.Serilog;
#endif

var builder = WebApplication.CreateBuilder(args).Inject();

#if EnableLog
// 启用日志
builder.UseSerilogDefault();
#endif

builder.Services.AddEndpointsApiExplorer();

var app = builder.Build();

app.UseHttpsRedirection();

app.Run();